StringScanner.SkipOver Function

Syntax

SkipOver as l(count as n)

Arguments

count

The number of characters to move.

Description

Skip over a number of characters.

Discussion

The <StringScanner>.SkipOver() function moves the offset Count characters. The argument can be positive (moving towards the end of the buffer) or negative (moving towards the start of the buffer).

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful prose written
by a technical writer of note.
%text%
scanner = stringscanner.create(txt)
scanner.skipover(5)
? scanner.GetToOffset()
= "This "
? scanner.getremainder()
= is wonderful prose written
by a technical writer of note.

See Also